
import java.awt.Color;
import javax.swing.*;


public class BibliotecaGUI extends JFrame {
	
	public BibliotecaGUI(){		

		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel painel = new JPanel();
		JMenuBar mainMenuBar = new JMenuBar();
		JMenu menu1, menu2;
		
		this.setContentPane(painel);
		
		menu1 = new JMenu("Incluir");
		menu2 = new JMenu("Listar");
		
		mainMenuBar.add(menu1);
		mainMenuBar.add(menu2);
		
		this.add(mainMenuBar);
		

		 
		this.pack(); // O Swing ajustará os labels criados no frame
		this.setVisible(true); 
		this.setSize(400,400);
		this.setTitle("Minha Biblioteca");
		
		painel.setBackground(new Color(5000));
		
		
		
	}
	public static void main(String[] args) {
		
		
		new BibliotecaGUI();

	}


	

}
